/***************************************************************************
 *   Copyright (C) 2010 by Gregor Kališnik <gregor@unimatrix-one.org>      *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License version 3        *
 *   as published by the Free Software Foundation.                         *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 ***************************************************************************/
#include "gamestate.h"

#include "BulletDynamics/Dynamics/btDynamicsWorld.h"

#include "scene/object.h"
#include "scene/partition.h"

using namespace BGE;

GameState::GameState()
{
  m_scene = new Scene::Object;
  m_overlay = 0l;
  m_controller = 0l;
  m_activeCamera = 0l;
  m_partition = 0l;
  m_dynamicsWorld = 0l;
}

GameState::~GameState()
{
  delete m_scene;
  if (m_partition)
    delete m_partition;
  if (m_dynamicsWorld)
    delete m_dynamicsWorld;
}
